<script lang="ts" setup>
import { reactive } from 'vue'

const props = defineProps<{
    mapx: string,
    mapy: string
}>()

const formData = reactive({
    name: ''
})
const submit = () => {
    console.log('34234', {...props, ...formData})
}
</script>
<template>
    <n-form ref="formRef" inline :label-width="80" :model="formData" size="large">
        <n-form-item label="姓名" path="user.name">
            <n-input v-model:value="formData.name" placeholder="输入姓名" />
        </n-form-item>
        <n-form-item>
            <n-button attr-type="button" @click="submit">
                提交
            </n-button>
        </n-form-item>
    </n-form>
</template>